package com.qf.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author 千锋健哥
 */
@Service
public class AuthServiceImpl implements AuthService{

    @Value("${custom.username}")
    private String name;
    @Value("${custom.password}")
    private String pwd;

    @Override
    public boolean login(String userName, String password) {
        if (name.equals(userName) && pwd.equals(password)) {
            return true;
        }
        return false;
    }

}
